package com.hyt.it.ogt.kq.common.bm.enums;

import lombok.Getter;

/**
 * 主观题类型枚举
 */
@Getter
public enum ProjectDownLoadStatusEnum {

	downloading("1", "下载中"), 
	finish("2", "成功"), 
	fail("3", "失败");

	private final String status;
	private final String desc;

	private ProjectDownLoadStatusEnum(String status, String desc) {
		this.status = status;
		this.desc = desc;
	}

	/**
	 * 获取主观题类型
	 * 
	 * @param status
	 *            试卷类型标识
	 * @return 试卷类型枚举值
	 */
	public static ProjectDownLoadStatusEnum getByCode(String status) {
		for (ProjectDownLoadStatusEnum value : values()) {
			if (value.getStatus().equals(status)) {
				return value;
			}
		}
		return null;
	}
}
